#ifndef _MODULE_PATH_
#define _MODULE_PATH_

#include <string>
#ifndef WIN32
#include <unistd.h>
#endif

#ifndef WIN32
#define MAX_PATH 260 /* max. length of full pathname */
#endif


class ApplicationInfo {
public:
	static std::string getApplicationPath();
	static std::string getApplicationName();

private:
	//获取运行路径
	static size_t GetModulePath(char* processdir, char* processname, size_t len);

};


#endif